from time import sleep
from selenium import webdriver
from selenium.webdriver.common.by import By


driver = webdriver.Chrome()
driver.get("http://192.168.46.5:18089/login")
driver.maximize_window()
driver.find_element(By.NAME,'username').send_keys("XTGLY")
driver.find_element(By.CLASS_NAME,'password').send_keys("123456")
driver.find_element(By.ID,"signIn").click()
sleep(3)

driver.find_element(By.LINK_TEXT,'仓库信息').click()
sleep(3)
# 4、点击“禁用”按钮。
driver.find_element(By.XPATH,'//*[@id="app"]/div/div[2]/section/div/div[3]/div[3]/table/tbody/tr/td[9]/div/button[2]').click()

# 在弹出框点击确认
driver.switch_to.alert.accept()